package org.jeecg.modules.hc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.hc.entity.HcMerchantCommission;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.hc.entity.HcSiteAddressDetails;

import java.math.BigDecimal;

/**
 * @Description: 门店抽佣
 * @Author: jeecg-boot
 * @Date:   2023-02-01
 * @Version: V1.0
 */
public interface IHcMerchantCommissionService extends IService<HcMerchantCommission> {

    /**
     * 获取佣金金额
     * @param hcMerchantCommission
     * @param price 如果佣金设置的百分比，则根据此价格获取佣金
     * @return
     */
    BigDecimal getCommission(HcMerchantCommission hcMerchantCommission, BigDecimal price);

    void edit(HcSiteAddressDetails param);

    IPage<HcSiteAddressDetails> pageList(Page<HcSiteAddressDetails> page);
}
